package com.xyy.saas.payment.callback.core.job;

import com.dangdang.ddframe.job.api.ShardingContext;
import com.dangdang.ddframe.job.api.simple.SimpleJob;
import com.xyy.elasticjob.client.annotation.ElasticJobConf;
import com.xyy.saas.payment.merchant.core.service.ApplyBankcardService;

import javax.annotation.Resource;

/**
 * 申请绑卡状态查询Job
 * 1.查询绑卡审核结果
 * 2.通知业务绑卡审核结果
 */
@ElasticJobConf(name = "com.xyy.saas.payment.callback.core.job.SyncApplyBankcardStatusJob", cron = "0 0/1 * * * ? ")
public class SyncApplyBankcardStatusJob implements SimpleJob {
    @Resource
    private ApplyBankcardService applyBankcardService;

    @Override
    public void execute(ShardingContext shardingContext) {
        applyBankcardService.syncApplyStatus();
    }
}
